using PandaWebAPI.Models.ef;

namespace PandaWebAPI.Services;

/// <summary>
/// 标签服务接口
/// </summary>
public interface ITagService
{
    /// <summary>
    /// 获取所有标签
    /// </summary>
    Task<IEnumerable<Tag>> GetAllAsync();

    /// <summary>
    /// 根据ID获取标签
    /// </summary>
    Task<Tag?> GetByIdAsync(Guid id);

    /// <summary>
    /// 根据名称获取标签
    /// </summary>
    Task<Tag?> GetByNameAsync(string name);

    /// <summary>
    /// 创建标签
    /// </summary>
    Task<Tag> CreateAsync(Tag tag);

    /// <summary>
    /// 更新标签
    /// </summary>
    Task<Tag> UpdateAsync(Tag tag);

    /// <summary>
    /// 删除标签
    /// </summary>
    Task DeleteAsync(Guid id);
} 